﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Corss_LehaKondr
{
    /// <summary>
    /// Логика взаимодействия для MainWindow.xaml
    /// </summary>
    public partial class MainWindow : CrosswordWindowBase
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        protected override void OnCellsCountChanged(uint rows, uint cols)
        {
            cellsGrid.Children.Clear();

            for (uint i = 0; i < rows; i++)
                for (uint j = 0; j < cols; j++)
                {
                    Cell cell = new Cell();
                    cell.isUsable = false;

                    cellsGrid.Children.Add(cell);
                }

            base.OnCellsCountChanged(rows, cols);
        }
    }
}
